package ngat.oss.simulation.metrics;

import java.util.*;
import java.awt.geom.*;

public class DemandStatistics {

    List profile;

    List critProfile;

    List priorityProfile;

    public double average;

    public double maximum;

    public double critAverage;

    public double critMaximum;

    public double priorityAverage;

    public double priorityMaximum;

    public DemandStatistics() {
	profile = new Vector();
	critProfile = new Vector();
	priorityProfile = new Vector();
    }

    public void addPoint(double t, double demand) {
	profile.add(new Point2D.Double(t, demand));
    }
   
    public Iterator listPoints() {
	return profile.iterator();
    }

    public void addCritPoint(double t, double demand) {
        critProfile.add(new Point2D.Double(t, demand));
    }

    public Iterator listCritPoints() {
        return critProfile.iterator();
    }

    public void addPriorityPoint(double t, double demand) {
        priorityProfile.add(new Point2D.Double(t, demand));
    }

    public Iterator listPriorityPoints() {
        return priorityProfile.iterator();
    }

}

